﻿; ---------------------------------------------------------
; *********************************************************
; ROOT FOLDER NAME, WHERE THE SOURCE CODE FILES ARE LOCATED
; *********************************************************
; "Source_CodeTest" ....... for scrip testing
; "Source_Code" ........... for building the source code setup project
#define APP_FILES_DIR "Source_Code"

; *********************************************************
; CHANGE THESE VERSION VALUES FOR A NEW SETUP BUILD
; *********************************************************
; Change these values for a new version!
; New Release: Update MAJOR and BUILD
; New Update:  Upate BUILD
; Hint: No need to change MINOR OR RELEASE
#define MAJOR 1
#define MINOR 0
#define RELEASE 0
#define BUILD 4452

; *********************************************************
; CREATE A NEW APP_ID FOR EACH NEW VERSION OF THE SOURCE CODE
; *********************************************************
#define APP_ID "EBB75F5F-8FCB-4f79-B591-9BB808F48BD4"
; ---------------------------------------------------------

#define APP_VER Str(MAJOR) + "." + Str(MINOR) + "." + Str(RELEASE) + "." + Str(BUILD)
#define APP_VER_SIMPLE Str(BUILD) 
#define APP_NAME "Jagged Alliance 2 v1.13 - Source Code"
#define APP_PUBLISHER "Members of the Bear's Pit Forum"
#define APP_PUBLISHER_URL "http://ja2v113.pbwiki.com/"
#define APP_SUPPORT_URL "http://www.ja-galaxy-forum.com"
#define APP_UPDATES_URL "http://ja2v113.pbwiki.com/"

[Setup]
AppName={#APP_NAME}
AppVerName={#APP_NAME} [{#APP_VER}]
AppPublisher={#APP_PUBLISHER}
AppPublisherURL={#APP_PUBLISHER_URL}
AppSupportURL={#APP_SUPPORT_URL}
AppUpdatesURL={#APP_UPDATES_URL}
DefaultDirName={pf}\{#APP_NAME} [{#APP_VER}]
DefaultGroupName={#APP_NAME}
DisableProgramGroupPage=yes
OutputBaseFilename=JA2 v1.13 Source Code [{#APP_VER_SIMPLE}]
SetupIconFile=C:\stuff\1.13\Development\Source Code\Installer\Support\source.ico
WizardSmallImageFile=C:\stuff\1.13\Development\Source Code\Installer\Support\ja2logo.bmp
Compression=lzma/ultra
SolidCompression=yes
OutputDir=C:\stuff\1.13\Development\Source Code\Installer\Output

[Languages]
Name: en; MessagesFile: compiler:Default.isl;
Name: de; MessagesFile: compiler:Languages\German.isl;
Name: ru; MessagesFile: compiler:Languages\Russian.isl;
Name: pl; MessagesFile: compiler:Languages\Polish.isl;
Name: ch; MessagesFile: compiler:Languages\Chinese.isl;

[CustomMessages]
en.CreateDesktopFolder=Create a shortcut to the folder
de.CreateDesktopFolder=Erstelle eine Verknüpfung für den Ordner
ru.CreateDesktopFolder=Создать ярлык папки
pl.CreateDesktopFolder=Utwyrz skryt do folderu
ch.CreateDesktopFolder=创建一个快捷方式文件夹

[Files]
Source: "C:\stuff\1.13\Development\Source Code\Installer\Setup Files\{#APP_FILES_DIR}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs replacesameversion

[Tasks]
Name: desktopfolder; Description: "{cm:CreateDesktopFolder}"; Flags: unchecked

[Icons]
Name: "{userdesktop}\{#APP_NAME} [{#APP_VER}]"; Filename: {app}; WorkingDir: {app}; Flags: foldershortcut; Tasks: desktopfolder
